namespace SynoManager.FileStation
{
    public class DeviceRoot : DirectoryInfo
    {
        internal DeviceRoot(FileStationService service)
            : base(service, "/")
        {
            base.name = service.Device.Address;
        }

        private SharedFolderInfo[] sharedFolders;
        public override DirectoryInfo[] GetDirectories()
        {
            sharedFolders = service.GetSharedFolders();
            return sharedFolders;
        }

        public override FileInfo[] GetFiles()
        {
            return new FileInfo[0];
        }
    }
}